//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.Xml;
using CommunityServer.Configuration;

namespace CommunityServer.Components
{

    public enum EventType
    {
        Information = 0,
        Warning = 1,
        Error = 2,
        Debug = 3
    }

	/// <summary>
	/// Represents an entry in the EventLog table
	/// </summary>
	public class EventLogEntry
	{
        private string _message, _category, _machineName;
        private int _settingsID, _eventid, _entryid;
        private DateTime _eventDate;
        private EventType _et = EventType.Information;

        public string Message
        {
            get{ return _message;}
            set{_message = value;}
        }

        public string MachineName
        {
            get{ return _machineName;}
            set{_machineName = value;}
        }

        public string Category
        {
            get{ return _category;}
            set{_category = value;}
        }

        public int SettingsID
        {
            get{return _settingsID;}
            set{_settingsID = value;}
        }

        public int EntryID
        {
            get{return _entryid;}
            set{_entryid = value;}
        }

        public int EventID
        {
            get{return _eventid;}
            set{_eventid = value;}
        }

        public DateTime EventDate
        {
            get{ return _eventDate;}
            set{_eventDate = value;}
        }

        public EventType EventType
        {
            get{ return _et;}
            set{_et = value;}
        }
        
	}

}
